package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TutorOrdersMapper;
import com.ruoyi.system.domain.TutorOrders;
import com.ruoyi.system.service.ITutorOrdersService;

/**
 * 家教订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-09
 */
@Service
public class TutorOrdersServiceImpl implements ITutorOrdersService 
{
    @Autowired
    private TutorOrdersMapper tutorOrdersMapper;

    /**
     * 查询家教订单
     * 
     * @param id 家教订单主键
     * @return 家教订单
     */
    @Override
    public TutorOrders selectTutorOrdersById(Long id)
    {
        return tutorOrdersMapper.selectTutorOrdersById(id);
    }

    /**
     * 查询家教订单列表
     * 
     * @param tutorOrders 家教订单
     * @return 家教订单
     */
    @Override
    public List<TutorOrders> selectTutorOrdersList(TutorOrders tutorOrders)
    {
        return tutorOrdersMapper.selectTutorOrdersList(tutorOrders);
    }

    /**
     * 新增家教订单
     * 
     * @param tutorOrders 家教订单
     * @return 结果
     */
    @Override
    public int insertTutorOrders(TutorOrders tutorOrders)
    {
        return tutorOrdersMapper.insertTutorOrders(tutorOrders);
    }

    /**
     * 修改家教订单
     * 
     * @param tutorOrders 家教订单
     * @return 结果
     */
    @Override
    public int updateTutorOrders(TutorOrders tutorOrders)
    {
        return tutorOrdersMapper.updateTutorOrders(tutorOrders);
    }

    /**
     * 批量删除家教订单
     * 
     * @param ids 需要删除的家教订单主键
     * @return 结果
     */
    @Override
    public int deleteTutorOrdersByIds(Long[] ids)
    {
        return tutorOrdersMapper.deleteTutorOrdersByIds(ids);
    }

    /**
     * 删除家教订单信息
     * 
     * @param id 家教订单主键
     * @return 结果
     */
    @Override
    public int deleteTutorOrdersById(Long id)
    {
        return tutorOrdersMapper.deleteTutorOrdersById(id);
    }
}
